/**
 * 弹窗处理.
 */
if(!tendog) {
	var tendog = {};
}
tendog.win = {
	base:function(objId, url, width){
		$("<div></div>").attr("id", objId).dialog({
			href:url,
			title:null,
			width:width,
			height:'auto',
			top:10 + document.body.scrollTop,
			modal:true,
			onClose:function(){
				$(this).dialog("destroy");
			}
		});
	},
	order:function(hostId) {
		this.base("win_order", ctx + "/win/order.jsp?id=" + hostId, 600);
	},
	photoEdit:function(id) {
		this.base("win_photo_edit", ctx + "/win/photo_edit.jsp?id=" + id, 580);
	},
	albumEdit:function(id) {
		this.base("win_photo_album", ctx + "/photo/album_edit.do?id=" + (id!=null?id:""), 580);
	},
	createQuotation:function(id) {
		this.base("win_create_quotation", ctx + "/order/quotation.do?id=" + (id!=null?id:""), 580);
	},
	appraise:function(id) {//评价
		this.base("win_create_quotation", ctx + "/order/appraise.do?id=" + (id!=null?id:""), 580);
	},
	createMsg:function(id) {
		this.base("win_create_msg", ctx + "/msg/create.do?id=" + (id!=null?id:""), 580);
	}
};